package c.h.a.k0.a.j0;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import c.h.a.m0.h;
import c.h.a.y.a;

/* compiled from: ScreenColorTestFragment */
public class n extends a {
    public View W;
    public int X;

    public void E(Bundle bundle) {
        super.E(bundle);
        ActionBar t = ((AppCompatActivity) Y()).t();
        if (t != null) {
            t.f();
        }
        if (!m0()) {
            h.g(Y());
        }
    }

    public View G(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        if (this.W == null) {
            this.W = new View(layoutInflater.getContext());
            r0();
            this.W.setFocusable(true);
            this.W.requestFocus();
            this.W.setOnClickListener(new a(this));
            this.W.post(new b(this));
        }
        return this.W;
    }

    public void q0(boolean z) {
        if (!m0()) {
            h.g(Y());
        }
    }

    public final void r0() {
        int i = this.X;
        if (i == 0) {
            this.W.setBackgroundColor(-65536);
        } else if (i == 1) {
            this.W.setBackgroundColor(-16711936);
        } else if (i == 2) {
            this.W.setBackgroundColor(-16776961);
        } else if (i == 3) {
            this.W.setBackgroundColor(-1);
        } else if (i == 4) {
            this.W.setBackgroundColor(-16777216);
        }
    }
}
